package inner_class;

public class Test{
    public static void main(String[] args){
        Outer o=new Outer();
        o.inner.setIb(30);
        int x=o.inner.getIb();
        System.out.println(x);
        //下面的输出实在定义了静态内部类才不会错
        Outer.Inner1 inner=new Outer.Inner1();//因为Inner是静态内部类
        inner.setIb(50);
        System.out.println(inner.getIb());
    }
}
